"""
    Some utility functions used throughout the application
"""
import time


def get_time():
    return int(time.time())

def is_int(str):
    """Test whether a string represents an integer."""
    try:
        int(str)
        return True
    except ValueError:
        return False
